{extend name="public/base"}

{block name="title"}竞猜界面{/block}

{block name="main"}
<!--  搜索添加   -->
<form action="{:url('/jingcaijieguo')}" class="layui-form layui-form-pane">
  <div class="layui-row">
    <div class="layui-col-md2 ">
      <div class="layui-form-item">
        <label for="kjtm" class="layui-form-label">开奖结果</label>
        <div class="layui-input-block">
            <input type="number"  placeholder="输入开奖结果(例13)" id="kjtm" name="kjtm" class="layui-input">
        </div>
      </div>
    </div>
    <div class="layui-col-md3 ">
      <button class="layui-btn layui-btn-normal">提交开奖</button>
    </div>
  </div>
</form>

<!--数据列表-->
<table class="layui-table">
  <thead class="bg-light">
  <tr>
    <th class="text-center">ID</th>
    <th class="text-center">微信id</th>
    <th class="text-center">竞猜内容</th>
    <th class="text-center">竞猜时间</th>
    <th class="text-center">状态</th>
    <th class="text-center">创建时间</th>
  </tr>
  </thead>
  <tbody>
  {assign name="empty" value='<tr><td colspan="7" class="text-center text-muted">没有数据</td></tr>'}
  {volist name="list" id="obj" empty="$empty"}
  <tr>
    <td class="text-center" style="line-height: 80px">{$obj.id}</td>
    <td class="text-center" style="line-height: 80px">{$obj.wxid}</td>
    <td class="text-center" style="line-height: 80px">{$obj.tm}</td>
    <td class="text-center" style="line-height: 80px">{$obj.jdate}</td>
    <td class="text-center" style="line-height: 80px">{$obj.staus}</td>
    <td class="text-center" style="line-height: 80px">{$obj.create_at}</td>
  </tr>
  {/volist}
  </tbody>
</table>
<!--分页-->
{/block}

{block name="js"}
<script type="text/javascript">
  $('.btn-delete').click(() => {
    let flag = confirm('您真的要删除这条数据吗？');
    return flag ? true : false;
  });
  $('[data-toggle="tooltip"]').tooltip();
</script>
{/block}
